package com.euond.accv.mdm.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.euond.common.domain.AbstractEntity;
import org.hibernate.annotations.DynamicInsert;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;


@Entity
@Table(name="mdm_group")
@DynamicInsert //该注解会根据属性非空动态生成insert语句
public class MdmGroup extends AbstractEntity<String> implements Serializable{
	private static final long serialVersionUID = 1L;

	/**
	 * 集团编号
	 */
	@Id
    @Column(name="group_no")
    private String groupNo;
    
	/**
	 * 集团名称
	 */
    @Column(name="group_name")
    private String groupName;
    
	/**
	 * 排列序号
	 */
    @Column(name="order_no")
    private Integer orderNo;
    
	/**
	 * 状态
	 */
    @Column(name="status")
    private String status;
    
	/**
	 * 备注
	 */
    @Column(name="remarks")
    private String remarks;
    
	/**
	 * 建档人
	 */
    @Column(name="creator")
    private String creator;
    
	/**
	 * 建档时间
	 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@Column(name="create_time")
    private Date createTime;
    
	/**
	 * 修改人
	 */
    @Column(name="modifier")
    private String modifier;
    
	/**
	 * 修改时间
	 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@Column(name="modify_time")
    private Date modifyTime;

    public String getGroupNo(){
    	return this.groupNo;
    }
    
    public void setGroupNo(String groupNo){
    	this.groupNo = groupNo;
    }
    public String getGroupName(){
    	return this.groupName;
    }
    
    public void setGroupName(String groupName){
    	this.groupName = groupName;
    }
    public Integer getOrderNo(){
    	return this.orderNo;
    }
    
    public void setOrderNo(Integer orderNo){
    	this.orderNo = orderNo;
    }
    public String getStatus(){
    	return this.status;
    }
    
    public void setStatus(String status){
    	this.status = status;
    }
    public String getRemarks(){
    	return this.remarks;
    }
    
    public void setRemarks(String remarks){
    	this.remarks = remarks;
    }
    public String getCreator(){
    	return this.creator;
    }
    
    public void setCreator(String creator){
    	this.creator = creator;
    }
    public Date getCreateTime(){
    	return this.createTime;
    }
    
    public void setCreateTime(Date createTime){
    	this.createTime = createTime;
    }
    public String getModifier(){
    	return this.modifier;
    }
    
    public void setModifier(String modifier){
    	this.modifier = modifier;
    }
    public Date getModifyTime(){
    	return this.modifyTime;
    }
    
    public void setModifyTime(Date modifyTime){
    	this.modifyTime = modifyTime;
    }
    
    @Override
	public String getId() {
		// TODO Auto-generated method stub
		return this.getGroupNo();
	}
}
